package com.ruoyi.mongo.word.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "word_check_record")
public class WordCheckRecordEntity {
    @Id
    private String _id; // MongoDB文档的ID，通常是ObjectId类型
    private String name; //
    private String type; //
    private String book; //
    private String unit; //
    private String practiceId; //
    private String chinese; //
    private int number; //
    private String selectVal; //
    private String correctVal; //
    private String result; // 对、错、不认识

    @JsonFormat(locale = "zh", timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

}
